package com.action.gulimall.product.fegin.fallback;

import com.action.common.exception.BizCodeEnum;
import com.action.common.utils.R;
import com.action.gulimall.product.fegin.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * @author sl shilun217@qq.com
 * @Deacription TODO
 * @date 2021/07/06/15:24
 **/
@Component
public class SeckillFeignServiceFallback implements SeckillFeignService {
    @Override
    public R seckillSkuInfoBySkuId(Long skuId) {
        return R.error(BizCodeEnum.FEIGN_SERVICE_EXCEPTION.getCode(), BizCodeEnum.FEIGN_SERVICE_EXCEPTION.getMessage());
    }
}
